
 /* this is a -*-C++-*- file
  * Copyright (C) 2005 Wim Dumon
  *
  * See the LICENSE file for terms of use.
  */
 
 #ifndef LOGINWIDGET_H_
 #define LOGINWIDGET_H_
 
 #include <Wt/WContainerWidget>
 
namespace Wt {
   class WLineEdit;
   class WText;
   class WTable;
 }
 
 using namespace Wt;


class LoginWidget : public WContainerWidget
 {
    public:
       LoginWidget(WContainerWidget *parent=0);
       virtual ~LoginWidget();
       Wt::Signal<int> loginSuccessful;

 
    private:
       WLineEdit *Username;
       WLineEdit *Password;
       WTable *layout;
       WLineEdit *ConfirmPassword;
       WText *Message;


       void login();
       void registrationMode();
       void addUser();
       void cleanGreeting();
       void loginMode();
};

 #endif

